package com.hh.service.dao.im;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hh.common.model.im.ImGroup;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

public interface ImGroupDao extends BaseMapper<ImGroup> {
    @Select("select * from eb_im_group where is_full = 0 limit 1")
    ImGroup getGroupOneNotFull();

    @Select("update eb_im_group set is_full = 1 where group_id = #{groupId}")
    void updateFullStatus(@Param("groupId") String groupId);
}
